package com.eduagent.xwqeduagent.api.InstantVoiceToTextConversion.constant;

/**
 * 讯飞语音听写API常量
 */
public class VoiceRecognitionConstant {
    // WebSocket URL
    public static final String WEBSOCKET_URL = "wss://iat-api.xfyun.cn/v2/iat";
    
    // API鉴权相关信息，需要从讯飞开放平台申请
    public static String APP_ID = "";
    public static String API_KEY = "";
    public static String API_SECRET = "";
    
    // 音频格式常量
    public static final String FORMAT_PCM_16K = "audio/L16;rate=16000";
    public static final String FORMAT_PCM_8K = "audio/L16;rate=8000";
    
    // 编码格式常量
    public static final String ENCODING_RAW = "raw";
    public static final String ENCODING_SPEEX = "speex";
    public static final String ENCODING_SPEEX_WB = "speex-wb";
    public static final String ENCODING_LAME = "lame";
    
    // 音频状态常量
    public static final int STATUS_FIRST_FRAME = 0;
    public static final int STATUS_CONTINUE_FRAME = 1;
    public static final int STATUS_LAST_FRAME = 2;
    
    // 语言常量
    public static final String LANGUAGE_CHINESE = "zh_cn";
    public static final String LANGUAGE_ENGLISH = "en_us";
    
    // 应用领域常量
    public static final String DOMAIN_COMMON = "iat";
    public static final String DOMAIN_MEDICAL = "medical";
    public static final String DOMAIN_FREE_SWITCH = "xfime-mianqie";
    
    // 方言常量
    public static final String ACCENT_MANDARIN = "mandarin";
} 